// Method Overriding // Method Hiding // Method Overloading
#include <iostream>
using namespace std;

class Car 
{
    public:
        void changeGear() {}
        void f2 () {}
};

class SportsCar:public Car
{
    public:
        void changeGear() {/**/} // Method Overriding
        void f2(int x) {} // Method Hiding
};

int main()
{
    SportsCar obj;
    obj.changeGear();
    // obj.f2(); // error
    obj.f2(4);
}